package cn.dust.design.pattern.structural.proxy.db;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
 * @Author: dust
 * @Date: 2019/11/27 15:17
 */
public class DynamicDataSource extends AbstractRoutingDataSource{


    protected Object determineCurrentLookupKey() {
        return DataSourceContexHolder.getDBType();
    }
}
